﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<QianBuo.Lottery.Web.Models.Scheme.DetailModel>" %>
<%@ Import Namespace="Code.Models" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	方案详情
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<div>
    <fieldset>
    <legend>方案详情</legend>
    <table class="table" width='100%'>
        <tr class="th">
            <th>彩种</th><th>玩法</th><th>购买的号码</th><th>金额</th><th>注数</th><th>返点加奖</th>
        </tr>
        <% var i = 0; foreach (var detail in Model.DetailList)
           {
              %>
                <tr <%=i++%2==1?"class='supersede'":"" %>>
                    <td><%=((LotteryType)detail.Lottery).GetName()%></td>
                    <td><%=((PlayType_E)detail.PlayType).GetName()%></td>
                    <td><div class="numberitem"><%=detail.DetailNumber %></div></td>
                    <td><%=detail.DetailMoney.ToString("C")%></td>
                    <td><%=detail.DetailCount%></td>
                    <td><%=detail.BackMoneyToWinMoney.HasValue ? detail.BackMoneyToWinMoney + "%" : "--" %></td>
                </tr>
              <%
            } 
                  var page=Model.pageInfo;
                  if(page!=null){
                  %>
          <tr>
            <td colspan='8' align="center">
                <%=Html.Pager(page.CurrPage,page.PageCount,page.SunCount,"pageInfo.CurrPage",Url.Route(new{Model.where,Model.SI_Pg,Model.SchemeID}),"pageInfo.PageCount") %>
            </td>
          </tr>
          <%} %>
    </table>
    <p></p>
    <div align="left">
        <a href='<%=Request["ReturnUrl"]??Url.Action("Index", Url.Route(new { Model.where, pageInfo = new { CurrPage = Model.SI_Pg } })) %>' class="a_blue">&gt;&gt;返回</a>
    </div>
    </fieldset>
</div>

</asp:Content>
